package com.api.shopapi.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.api.shopapi.entity.NursingScheduling;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public interface NursingSchedulingService {

    int insert(NursingScheduling nursingScheduling, JSONArray jsonArray, String nursingSchedulingCode, int type);

    int updateByNursingSchedulingCode(NursingScheduling nursingScheduling,JSONArray jsonArray, int type,String remarks);

    int deleteByNursingSchedulingCode(String nursingSchedulingCode);

    NursingScheduling getByNursingSchedulingCode(String nursingSchedulingCode);

    NursingScheduling getByTime(Date time,String institutionCode);

    NursingScheduling getByNowTime(String institutionCode);

    PageInfo<NursingScheduling> getPageList(int pageIndex, int pageSize, String institutionCode, String startTime, String endTime);

    List<String> insert1(JSONObject jsonObject);

    PageInfo<NursingScheduling> pageByGovCode(int pageIndex, int pageSize, String governmentCode, String startTime, String endTime);


}
